@use "sass:list";

$my_list: 1, 2, 3;

/*
append  插入 //=> list
index    返回值的索引 默认是1  //=> number | null
is-bracketed  返回是否 $list 具有方括号。 =>boolean
join($list1, $list2, $separator: auto, $bracketed: auto) //=> list
length($list) //=> number
nth($list, $n) 根据$n返回数据 n为负数从末尾开始
set-nth($list, $n, $value) //=> list  根据所以i替换值
list.slash($elements...) //=> listlist.slash(1px, 50px, 100px); // 1px / 50px / 100px
返回一个 $elements 以斜杠分隔的列表，


*/
@function zks($list) {
  @return list.append($list, (blue, green, red yellow), $separator: slash);
}

$colors: (red, blue, green);
$colors: list.append($colors, (yellow));

$arr: small, large, normal;
$z: [small, large, normal];

@function Kuohao($list) {
  @return is-bracketed($list);
}

$newlist: join($arr, $z);

$newnewlist:set-nth($newlist, 1, newstring);
 p {
  height: zks($my_list);
  color: $colors;
  height: index($arr, normal);
  // content: Kuohao($arr);//false
  // content: Kuohao($z); //true
  content: $newlist;
  font-size: length($arr);
  font-weight: nth($arr, 2);
  font-style: $newnewlist;
}
